-- GENERATED SPELL FOR [Shattered Hand Savage] --


function spell0_16523(pUnit, Event) --@Deathblow,n/a--
pUnit:FullCastSpellOnTarget(36023,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16523', 9000, 1)
end

function spell1_16523(pUnit, Event) --@Deathblow,n/a--
pUnit:FullCastSpellOnTarget(36054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16523', 9000, 1)
end

function spell2_16523(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(30485,pUnit)
pUnit:RegisterEvent('Sorts_16523', 573, 1)
end

function spell3_16523(pUnit, Event) --@Slice and Dice,Self--
pUnit:FullCastSpellOnTarget(30470,pUnit)
pUnit:RegisterEvent('Sorts_16523', 8000, 1)
end

function Sorts_16523(pUnit, Event)
local choix_sorts_16523 = math.random(0, 3)
if choix_sorts_16523 == 0 then
pUnit:RegisterEvent('spell0_16523', 1, 1)
end
if choix_sorts_16523 == 1 then
pUnit:RegisterEvent('spell1_16523', 1, 1)
end
if choix_sorts_16523 == 2 then
pUnit:RegisterEvent('spell2_16523', 1, 1)
end
if choix_sorts_16523 == 3 then
pUnit:RegisterEvent('spell3_16523', 1, 1)
end
end

function mob16523_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16523', math.random(1500, 3000), 1)
end

function mob16523_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16523_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16523_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16523, 1, 'mob16523_Action')
RegisterUnitEvent(16523, 2, 'mob16523_Leave')
RegisterUnitEvent(16523, 3, 'mob16523_Kill')
RegisterUnitEvent(16523, 4, 'mob16523_Die')
